﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idenmpotency
{
    /// <summary>
    /// 接口：幂等性检查器
    /// </summary>
    public interface IIdenmpotencyChecker
    {
        /// <summary>
        /// 检查
        /// </summary>
        /// <param name="request"></param>
        /// <param name="token"></param>
        /// <returns></returns>
        Task CheckAsync(IIdenmpotencyRequest request, CancellationToken token = default);
    }
}
